+2004-01-21 Federico Mena Quintero <federico@ximian.com>
+
+ * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
+ Free the path fields.
+
+ * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
+ the root_path, reported by <scott@asofyet.org>
+ (gtk_file_system_model_finalize): Unref the file system.
+
+ * gtk/gtkfilefilter.c (filter_rule_free): default:
+ g_assert_not_reached().
+ (gtk_file_filter_finalize): Free the filter->name, reported by
+ <scott@asofyet.org>
+ (gtk_file_filter_finalize): Free the rules list.
+
Wed Jan 21 18:10:40 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
+2004-01-21 Federico Mena Quintero <federico@ximian.com>
+
+ * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
+ Free the path fields.
+
+ * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
+ the root_path, reported by <scott@asofyet.org>
+ (gtk_file_system_model_finalize): Unref the file system.
+
+ * gtk/gtkfilefilter.c (filter_rule_free): default:
+ g_assert_not_reached().
+ (gtk_file_filter_finalize): Free the filter->name, reported by
+ <scott@asofyet.org>
+ (gtk_file_filter_finalize): Free the rules list.
+
Wed Jan 21 18:10:40 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
+2004-01-21 Federico Mena Quintero <federico@ximian.com>
+
+ * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
+ Free the path fields.
+
+ * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
+ the root_path, reported by <scott@asofyet.org>
+ (gtk_file_system_model_finalize): Unref the file system.
+
+ * gtk/gtkfilefilter.c (filter_rule_free): default:
+ g_assert_not_reached().
+ (gtk_file_filter_finalize): Free the filter->name, reported by
+ <scott@asofyet.org>
+ (gtk_file_filter_finalize): Free the rules list.
+
Wed Jan 21 18:10:40 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
+2004-01-21 Federico Mena Quintero <federico@ximian.com>
+
+ * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
+ Free the path fields.
+
+ * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
+ the root_path, reported by <scott@asofyet.org>
+ (gtk_file_system_model_finalize): Unref the file system.
+
+ * gtk/gtkfilefilter.c (filter_rule_free): default:
+ g_assert_not_reached().
+ (gtk_file_filter_finalize): Free the filter->name, reported by
+ <scott@asofyet.org>
+ (gtk_file_filter_finalize): Free the rules list.
+
Wed Jan 21 18:10:40 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
+2004-01-21 Federico Mena Quintero <federico@ximian.com>
+
+ * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
+ Free the path fields.
+
+ * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
+ the root_path, reported by <scott@asofyet.org>
+ (gtk_file_system_model_finalize): Unref the file system.
+
+ * gtk/gtkfilefilter.c (filter_rule_free): default:
+ g_assert_not_reached().
+ (gtk_file_filter_finalize): Free the filter->name, reported by
+ <scott@asofyet.org>
+ (gtk_file_filter_finalize): Free the rules list.
+
Wed Jan 21 18:10:40 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
impl->bookmarks_changed_id = 0;
g_object_unref (impl->file_system);
+ /* FIXME: Free impl->filters -- what's the memory management there? */
+
+ if (impl->current_volume_path)
+ gtk_file_path_free (impl->current_volume_path);
+
+ if (impl->current_folder)
+ gtk_file_path_free (impl->current_folder);
+
+ if (impl->preview_path)
+ gtk_file_path_free (impl->preview_path);
+
G_OBJECT_CLASS (parent_class)->finalize (object);
}
typedef enum {
FILTER_RULE_PATTERN,
FILTER_RULE_MIME_TYPE,
- FILTER_RULE_CUSTOM,
+ FILTER_RULE_CUSTOM
} FilterRuleType;
struct _GtkFileFilterClass
if (rule->u.custom.notify)
rule->u.custom.notify (rule->u.custom.data);
break;
+ default:
+ g_assert_not_reached ();
}
g_free (rule);
GtkFileFilter *filter = GTK_FILE_FILTER (object);
g_slist_foreach (filter->rules, (GFunc)filter_rule_free, NULL);
+ g_slist_free (filter->rules);
+
+ if (filter->name)
+ g_free (filter->name);
parent_class->finalize (object);
}
if (model->root_folder)
g_object_unref (model->root_folder);
+ if (model->root_path)
+ gtk_file_path_free (model->root_path);
+
+ if (model->file_system)
+ g_object_unref (model->file_system);
+
children = model->roots;
while (children)
{